<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/base/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK rel="stylesheet" type="text/css"
	href="${baseurl}js/easyui/styles/default.css">
<%@ include file="/WEB-INF/jsp/base/common_css.jsp"%>
<%@ include file="/WEB-INF/jsp/base/common_js.jsp"%>

</head>
<script type="text/javascript">
	function AdminCPwdSave(){
		var oldPwd=$("#oldPwd").val();
           var newPwd=$("#newPwd").val();
            var confirmPwd=$("#confirmPwd").val();
           if(typeof(oldPwd)=='undefined'||null==oldPwd){
                $("#oldPwd").tips({
					side : 2,
					msg : '旧密码不得为空',
					bg : '#AE81FF',
					time : 3
				});
				$("#oldPwd").focus();
				return false;
           }else if(typeof(newPwd)=='undefined'||null==newPwd){
                $("#newPwd").tips({
					side : 2,
					msg : '新密码不得为空',
					bg : '#AE81FF',
					time : 3
				});
				$("#newPwd").focus();
				return false;
           }
           if(newPwd!=confirmPwd){//两次密码输入的不一致
                $("#newPwd").tips({
					side : 2,
					msg : '两次输入的密码不一致',
					bg : '#AE81FF',
					time : 3
				});
				return false;
           }
            //验证通过提交表单
            $("#password").val(newPwd);
			$("#modifyForm").submit();
           
	}
</script>
<body>

 <div class="fs_wapper">
    <form action="sureModify"  name="modifyForm" id="modifyForm">
			    <input id="id" type="hidden" name="id" value="${id}"/>
       		    <input type="hidden" id="password" name="password" value=""/>
        <table>
            <tr>
                <th>原密码</th>
                <td>
                    <input id="oldPwd" name="oldPwd" type="password" class="easyui-validatebox" data-options="required:true,validType:['length[6,256]']" />
                    </td>
            </tr>
            <tr>
                <th>新密码</th>
                <td>
                    <input id="newPwd" name="newPwd" type="password" class="easyui-validatebox" data-options="required:true,validType:['length[6,256]']" />
                    </td>
            </tr>
            <tr>
                <th>重复密码</th>
                <td>
                    <input id="confirmPwd" name="confirmPwd" type="password" class="easyui-validatebox" validType="equalTo['#newPwd']" />
                    </td>
            </tr>
        </table> 
    </form>
</div>
<div style="margin:20px;">
    <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="AdminCPwdSave()">保存</a>
</div>
	
	
</body>
	
</html>
